﻿// HSS.Interlink.UploadCompletedEventArgs.cs
// ----------------------------------------------------------------------------
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.html)
// ----------------------------------------------------------------------------
// HighSpeed-Solutions, LLC
// Copyright (c) 2001-2010
// ----------------------------------------------------------------------------
// File:       UploadCompletedEventArgs.cs
// Author:     HSS\gbanta
// Created:    07/16/2011
// Modified:   07/22/2011
// ----------------------------------------------------------------------------
namespace HSS.Interlink
{
	#region Using Directives
	using System;
	#endregion

	#region UploadCompletedEventArgs
	/// <summary>
	/// UploadCompletedEventArgs
	/// </summary>
	public class UploadCompletedEventArgs : EventArgs
	{
		#region Constructors
		/// <summary>
		/// Constructor
		/// </summary>
		public UploadCompletedEventArgs()
		{

		}
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="completedCount">The count of successfully uploaded files.</param>
		public UploadCompletedEventArgs(int completedCount)
		{
			this.CompletedCount = completedCount;
		}
		#endregion

		#region Properties
		/// <summary>
		/// Gets or sets the count of successfully uploaded files.
		/// </summary>
		public int CompletedCount { get; set; }
		#endregion
	}
	#endregion

	#region FileUploadCompletedEventArgs
	/// <summary>
	/// FileUploadCompletedEventArgs
	/// </summary>
	public class FileUploadCompletedEventArgs : EventArgs
	{
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="fileName">The name of the file that was uploaded.</param>
		/// <param name="result">The response from the web server related to the uploaded file.</param>
		public FileUploadCompletedEventArgs(string fileName, string result)
		{
			this.FileName = fileName;
			this.Result = result;
		}
		/// <summary>
		/// Gets the name of the file that was uploaded.
		/// </summary>
		public string FileName { get; private set; }
		/// <summary>
		/// Gets the response from the web server related to the uploaded file.
		/// </summary>
		public string Result { get; private set; }
	}
	#endregion
}